package conversion

import "strconv"

/*
字符串 到 整型
*/

// StringToInt string 转 int
func StringToInt(value string) (intRes int, err error) {
	intRes, err = strconv.Atoi(value)
	return
}

// StringToInt64 string 转int64
func StringToInt64(value string) (int64Res int64, err error) {
	int64Res, err = strconv.ParseInt(value, 10, 64)
	return
}
